<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <form action="http://127.0.0.1:8000/api/admin/auth-admins/update" method="post">
        <button type="submit">提交</button>
        <input type="hidden" name="_method" value="put">
    </form>
    <script>
        let json={"old_password":"sdfds","new_password":"dsfs","re_password":"sdfds","_mode":"password"}
        let elForm=document.querySelector('form')
        for(let k in json){
            elForm.innerHTML+='<div>'+k+'<textarea name="'+k+'">'+json[k]+'</textarea></div>';
        }
    </script>
</body>
</html>